import { createRouter, createWebHistory } from 'vue-router';
import HomePage from '../components/HomePage.vue'; // 综合展示页面
import VideoPage from '../components/VideoPage.vue'; // 视频页面
import GamePage from '../components/GamePage.vue'; // 游戏页面
import SoftPage from '../components/SoftPage.vue'; // 软件页面
import ManagerPage from '../components/ManagerPage.vue'; // 管理页面
// // ... 其他页面导入

const routes = [
  { path: '/', redirect: { name: 'home' } },
  { path: '/home', component: HomePage , name: 'home' },
  { path: '/video', component: VideoPage },
  { path: '/game', component: GamePage },
  { path: '/soft', component: SoftPage },
  { path: '/manager', component: ManagerPage },
  // ... 其他路由配置
];

const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;